package service.ucenter.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import service.ucenter.service.MemberService;

@RestController
@RequestMapping("/ucenter/count")
@CrossOrigin
public class CountController {
    @Autowired
    private MemberService memberService;

    @ApiOperation("统计一天之内注册的会员数")
    @GetMapping("/{date}")
    public Integer countRegisterMembers(@PathVariable String date){
        return memberService.countRegister(date);
    }
}
